﻿using Abp.Domain.Entities;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace SOEI.Solution.DomainEntities.RoomSourceVerifiyV1
{
    [Table("CLFWQ_WTDLHTZW")]
    public class CommissionContractMainBody : Entity<string>
    {
        /// <summary>
        ///字段名称
        /// </summary>
        [Required]
        [Column("ZDMC")]
        public string ZDMC
        {
            get;
            set;
        }

        /// <summary>
        ///字段值
        /// </summary>
        [Column("ZDZ")]
        public string ZDZ
        {
            get;
            set;
        }

        /// <summary>
        ///委托合同编号
        /// </summary>
        [Required]
        [Column("WTHTBH")]
        public string WTHTBH
        {
            get;
            set;
        }


        /// <summary> 复合主键
        /// </summary>
        [NotMapped]
        public override string Id => $"{WTHTBH}-{ZDMC}";

    }
}
